﻿using Sunny.UI;
using System.Drawing;

namespace WebAssistant.WinUI.Style
{
    public class Helper
    {
        public static Color StyleToColor(UIStyle style)
        {
            Color color;
            switch (style)
            {
                case UIStyle.Blue:
                    color = UIColor.Blue;
                    break;
                case UIStyle.Green:
                    color = UIColor.Green;
                    break;
                case UIStyle.Orange:
                    color = UIColor.Orange;
                    break;
                case UIStyle.Red:
                    color = UIColor.Red;
                    break;
                case UIStyle.Gray:
                    color = UIColor.Gray;
                    break;
                case UIStyle.White:
                    color = UIColor.White;
                    break;
                case UIStyle.DarkBlue:
                    color = UIColor.DarkBlue;
                    break;
                case UIStyle.Black:
                    color = UIColor.Black;
                    break;
                case UIStyle.Office2010Blue:
                    color = UIColor.LightBlue;
                    break;
                case UIStyle.Office2010Silver:
                    color = UIColor.LightGray;
                    break;
                case UIStyle.Office2010Black:
                    color = UIColor.LightGray;
                    break;
                case UIStyle.LightBlue:
                    color = UIColor.LightBlue;
                    break;
                case UIStyle.LightGreen:
                    color = UIColor.LightGreen;
                    break;
                case UIStyle.LightOrange:
                    color = UIColor.LightOrange;
                    break;
                case UIStyle.LightRed:
                    color = UIColor.LightRed;
                    break;
                case UIStyle.LightGray:
                    color = UIColor.LightGray;
                    break;
                default:
                    color = UIColor.Blue;
                    break;
            }

            return color;
        }
    }
}
